package mundo.java.client;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Provider;
import com.google.inject.Singleton;

public class ArtigoModule extends AbstractGinModule {
	@Override
	protected void configure() {
		bind(HandlerManager.class).toProvider(HandlerManagerProvider.class).in(Singleton.class);
	}
	
	public static class HandlerManagerProvider implements Provider<HandlerManager> {
		final HandlerManager eventBus = new HandlerManager(null);
		
		@Override
		public HandlerManager get() {
			return eventBus;
		}
	}
}